package cn.dlc.com.biz.log.service.impl;

import cn.dlc.com.biz.log.entity.OperatorLogEntity;
import cn.dlc.com.biz.log.mapper.OperatorLogMapper;
import cn.dlc.com.biz.log.service.OperatorLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Author: dlc
 * @Date: 2021/12/2 - 10:44
 */
@Service
@Transactional
public class OperatorLogServiceImpl implements OperatorLogService {

    @Autowired
    private OperatorLogMapper operatorLogMapper;


    @Override
    public void save(OperatorLogEntity operatorLog) {
        operatorLogMapper.save(operatorLog);
    }

    @Override
    public List<OperatorLogEntity> list() {
        return operatorLogMapper.list();
    }
}
